/* Certificate Verification Page Styles */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --container-max-width: 1200px;
    --sidebar-width: 400px;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main Container */
.verify-certificate-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Hero Section */
.verify-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.verify-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    color: white;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 3rem;
    align-items: start;
}

/* Verification Section */
.verification-section {
    position: sticky;
    top: 2rem;
}

.verification-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.card-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.card-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

/* Verification Form */
.verification-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Verify Button */
.verify-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.verify-btn:active {
    transform: translateY(0);
}

.verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
}

/* Verification Results */
.verification-result,
.error-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    animation: slideIn 0.3s ease-out;
}

.verification-result {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}

.error-result {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
}

.result-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.result-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.result-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.success-icon {
    color: var(--success-color);
}

.error-icon {
    color: var(--error-color);
}

.result-left h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.result-right {
    flex: 1;
}

.certificate-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    min-width: 120px;
}

.info-item .value {
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
    flex: 1;
}

/* Featured Content Sidebar */
.featured-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.section-header {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--primary-dark);
}

/* Courses Grid */
.courses-grid {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

.course-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.course-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 1rem;
}

.course-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: var(--text-primary);
}

.course-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.meta-item {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.course-price {
    margin-bottom: 0.75rem;
}

.price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.course-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.course-link:hover {
    color: var(--primary-dark);
}

/* News List */
.news-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.news-date,
.news-category {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.news-category {
    background: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
}

.news-excerpt {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Innovations List */
.innovations-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.innovation-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.innovation-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.innovation-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.innovation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.innovation-content {
    flex: 1;
}

.innovation-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.innovation-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.innovation-title a:hover {
    color: var(--primary-color);
}

.innovation-meta {
    margin-bottom: 0.5rem;
}

.innovation-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.innovation-excerpt {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Board Content Grid */
.board-grid {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.board-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    position: relative;
}

.board-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

.board-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
}

.board-link:hover {
    text-decoration: none;
    color: inherit;
}

.board-icon {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.board-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.2s ease;
}

.board-card:hover .board-icon img {
    filter: grayscale(0%);
}

.default-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.default-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.board-content {
    text-align: center;
}

.board-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: var(--text-primary);
}

.board-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.board-card:hover .board-title {
    color: var(--primary-color);
}

.board-card:hover .board-description {
    color: var(--text-primary);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .verification-section {
        position: static;
    }
    
    .sidebar-width {
        --sidebar-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .verify-hero {
        padding: 60px 0 40px;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .card-header {
        padding: 1.5rem;
    }
    
    .verification-form {
        padding: 1.5rem;
    }
    
    .content-layout {
        gap: 1.5rem;
    }
    
    .courses-grid {
        padding: 1rem;
    }
    
    .news-list,
    .innovations-list {
        padding: 1rem;
    }
    
    .board-grid {
        padding: 1rem;
    }
    
    .board-card {
        padding: 0.75rem;
    }
    
    .board-icon {
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .board-icon img {
        max-width: 30px;
        max-height: 30px;
    }
    
    .default-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    .verification-form {
        padding: 1rem;
    }
    
    .news-item,
    .innovation-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .news-image,
    .innovation-image {
        width: 100%;
        height: 120px;
    }
    
    .result-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .result-left {
        min-width: auto;
    }
    
    .info-item {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .info-item .label {
        min-width: auto;
    }
    
    .info-item .value {
        text-align: center;
    }
}
