/* Global Styles */
:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --light-color: #f8f9fa;
    --dark-color: #202124;
    --gray-color: #5f6368;
    --border-color: #dadce0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--gray-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Upload Section */
.upload-section {
    padding: 4rem 0;
    background-color: white;
    text-align: center;
}

.upload-section h2 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.upload-section p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 3rem 2rem;
    margin: 0 auto;
    max-width: 600px;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-button:hover {
    background-color: #3367d6;
}

.youtube-input {
    margin-top: 1rem;
    display: flex;
    max-width: 400px;
    margin: 1rem auto;
}

.youtube-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    outline: none;
}

.youtube-input button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s;
}

.youtube-input button:hover {
    background-color: #3367d6;
}

/* File Preview */
.file-info {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.file-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
}

.file-details {
    flex: 1;
    text-align: left;
}

.file-details p {
    margin: 0;
}

.file-details #file-name {
    font-weight: 500;
    color: var(--dark-color);
}

.file-details #file-size {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.file-actions button {
    background: none;
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.file-actions button:hover {
    color: #c5221f;
}

.analyze-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.analyze-button:hover {
    background-color: #2d9047;
}

/* Processing */
.loader {
    border: 5px solid var(--light-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Features Section */
.features {
    background-color: var(--light-color);
    padding: 4rem 0;
    text-align: center;
}

.features h2 {
    margin-bottom: 3rem;
}

.feature-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow);
    position: relative;
}

.pdf-modal-content {
    max-width: 800px;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.8rem;
    color: var(--gray-color);
    cursor: pointer;
}

.close:hover {
    color: var(--dark-color);
}

/* Auth Styles */
.auth-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.auth-button {
    padding: 1rem;
    border-radius: 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.auth-button i {
    margin-right: 0.8rem;
}

.email-auth {
    background-color: var(--dark-color);
    color: white;
}

.email-auth:hover {
    background-color: #303134;
}

.google-auth {
    background-color: white;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.google-auth:hover {
    background-color: #f1f3f4;
}

.facebook-auth {
    background-color: #1877f2;
    color: white;
}

.facebook-auth:hover {
    background-color: #166fe5;
}

.phone-auth {
    background-color: var(--secondary-color);
    color: white;
}

.phone-auth:hover {
    background-color: #2d9047;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    outline: none;
}

.secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.secondary:hover {
    background-color: #e8eaed;
}

/* PDF Viewer */
#pdf-container {
    width: 100%;
    height: 500px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.pdf-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.action-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.action-button:hover {
    background-color: #3367d6;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .feature-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card {
        width: 100%;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}
