/*
 * TEPE SEO Rank Tracker - WordPress Plugin
 * Frontend Styles
 * Version: 1.0.1
 */

/* Wrapper */
.tepeseo-rank-tracker-wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

/* Header */
.tepeseo-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tepeseo-header-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.tepeseo-header-icon svg {
    width: 48px;
    height: 48px;
}

.tepeseo-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.tepeseo-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}

/* Main Content - Yan Yana Layout */
.tepeseo-main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 1200px) {
    .tepeseo-main-content {
        grid-template-columns: 450px 1fr;
        gap: 40px;
    }
    
    .tepeseo-form-section {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
}

/* Form Card */
.tepeseo-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tepeseo-form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e6ed;
}

.tepeseo-form-header svg {
    width: 28px;
    height: 28px;
    color: #1e88e5;
    flex-shrink: 0;
}

.tepeseo-form-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

/* Form Groups */
.tepeseo-form-group {
    margin-bottom: 30px;
}

.tepeseo-form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tepeseo-form-group label svg {
    width: 18px;
    height: 18px;
    color: #1e88e5;
    flex-shrink: 0;
}

/* Form Inputs */
.tepeseo-form-input,
.tepeseo-form-select,
.tepeseo-keyword-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    color: #2c3e50;
    box-sizing: border-box;
}

.tepeseo-form-input:focus,
.tepeseo-form-select:focus,
.tepeseo-keyword-input:focus {
    outline: 0;
    border-color: #1e88e5;
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
}

.tepeseo-input-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
    color: #7f8c8d;
}

/* Keywords */
.tepeseo-keywords-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tepeseo-keyword-input-wrapper {
    position: relative;
}

.tepeseo-keyword-counter {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
}

/* Submit Button */
.tepeseo-btn-submit {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.tepeseo-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tepeseo-btn-submit svg {
    width: 20px;
    height: 20px;
}

/* Loading */
.tepeseo-loading {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tepeseo-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e0e6ed;
    border-top-color: #1e88e5;
    border-radius: 50%;
    animation: tepeseo-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes tepeseo-spin {
    to { transform: rotate(360deg); }
}

.tepeseo-loading p {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
}

.tepeseo-loading small {
    color: #7f8c8d;
}

/* Empty State */
.tepeseo-empty-state {
    background: #fff;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px dashed #e0e6ed;
}

.tepeseo-empty-icon {
    width: 80px;
    height: 80px;
    background: #f5f7fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.tepeseo-empty-icon svg {
    width: 36px;
    height: 36px;
    color: #1e88e5;
}

.tepeseo-empty-state h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.tepeseo-empty-state p {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 0;
}

/* Results */
.tepeseo-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.tepeseo-results-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
}

.tepeseo-results-header svg {
    width: 24px;
    height: 24px;
    color: #ff9800;
}

.tepeseo-btn-new {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tepeseo-btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tepeseo-btn-new svg {
    width: 18px;
    height: 18px;
}

/* Features */
.tepeseo-features {
    margin-top: 60px;
}

.tepeseo-features-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tepeseo-features-title svg {
    width: 28px;
    height: 28px;
    color: #ff9800;
}

.tepeseo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.tepeseo-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #1e88e5;
}

.tepeseo-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top-color: #ff9800;
}

.tepeseo-feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.tepeseo-feature-card h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.tepeseo-feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 1199px) {
    .tepeseo-main-content {
        grid-template-columns: 1fr;
    }
    
    .tepeseo-form-section {
        position: relative;
        max-height: none;
    }
    
    .tepeseo-form-card {
        max-width: 700px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .tepeseo-rank-tracker-wrapper {
        padding: 15px !important;
    }
    
    .tepeseo-header {
        padding: 40px 20px;
    }
    
    .tepeseo-header h2 {
        font-size: 1.8rem;
    }
    
    .tepeseo-subtitle {
        font-size: 1rem;
    }
    
    .tepeseo-form-card {
        padding: 25px 20px;
    }
    
    .tepeseo-form-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tepeseo-form-header h3 {
        font-size: 1.4rem;
    }
    
    .tepeseo-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tepeseo-btn-new {
        width: 100%;
        justify-content: center;
    }
    
    .tepeseo-features-grid {
        grid-template-columns: 1fr;
    }
    
    .tepeseo-empty-state {
        padding: 40px 25px;
    }
}
