/* Стилове за results-archive.php. Изнесени от inline <style>, за да се кешират. */

        /* Photo Album Styles */
        .album-hero {
            background: #f5deb3;
            color: #8b4513;
            padding: 1rem 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .album-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="paper-texture" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="10" r="1" fill="rgba(139,69,19,0.1)"/><circle cx="30" cy="25" r="1" fill="rgba(139,69,19,0.1)"/><circle cx="15" cy="40" r="1" fill="rgba(139,69,19,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23paper-texture)"/></svg>');
            opacity: 0.3;
        }

        .album-hero .container {
            position: relative;
            z-index: 2;
        }

        .album-title {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
            font-family: 'Georgia', serif;
        }

        .album-subtitle {
            font-size: 1.3rem;
            opacity: 0.8;
            margin-bottom: 1rem;
            font-style: italic;
            font-family: 'Georgia', serif;
        }

        .album-stats {
            display: flex;
            justify-content: center;
            gap: 3rem;
            margin: 1rem auto;
            background: rgba(255, 255, 255, 0.9);
            padding: 1.5rem;
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            max-width: 600px;
        }

        .stat-book {
            text-align: center;
            position: relative;
        }

        .stat-book::before {
            content: '📖';
            font-size: 2rem;
            display: block;
            margin-bottom: 0.5rem;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 800;
            color: #8b4513;
            display: block;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #a0522d;
            font-weight: 600;
        }

        /* Back Button */
        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: linear-gradient(135deg, #8b4513, #a0522d);
            color: white;
            padding: 1rem 2rem;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            margin: 1rem 0;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
        }

        .back-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
            color: white;
            text-decoration: none;
        }

        /* Album Container */
        .album-container {
            padding: 4rem 0;
            background: #f5f5dc;
            min-height: 100vh;
        }

        .album-book {
            max-width: 1200px;
            margin: 0 auto;
            background: #8b4513;
            border-radius: 20px;
            padding: 3rem;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            position: relative;
            overflow: hidden;
        }

        .album-book::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            width: 4px;
            height: 100%;
            background: linear-gradient(to bottom, #654321, #8b4513, #654321);
            transform: translateX(-50%);
            box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
        }

        /* Hide line on mobile */
        @media (max-width: 768px) {
            .album-book::before {
                display: none;
            }
        }

        /* Tab Navigation */
        .album-tabs {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 3rem;
            padding: 0 2rem;
        }

        .album-tab {
            background: #deb887;
            color: #8b4513;
            padding: 1rem 2rem;
            border: none;
            border-radius: 15px 15px 0 0;
            cursor: pointer;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            position: relative;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transform: perspective(100px) rotateX(10deg);
        }

        .album-tab:hover,
        .album-tab.active {
            background: #f5deb3;
            transform: perspective(100px) rotateX(0deg) translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        .album-tab.active::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            right: 0;
            height: 3px;
            background: #f5deb3;
        }

        /* Album Pages */
        .album-page {
            background: #f5deb3;
            border-radius: 15px;
            padding: 3rem;
            margin: 0 1rem;
            box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.1);
            position: relative;
            display: none;
            min-height: 600px;
        }

        .album-page.active {
            display: block;
            animation: pageFlip 0.8s ease-in-out;
        }

        @keyframes pageFlip {
            0% {
                transform: perspective(1200px) rotateY(-15deg);
                opacity: 0.7;
            }
            50% {
                transform: perspective(1200px) rotateY(-7.5deg);
                opacity: 0.8;
            }
            100% {
                transform: perspective(1200px) rotateY(0deg);
                opacity: 1;
            }
        }

        /* Paper texture for pages */
        .album-page::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="paper-lines" x="0" y="0" width="100" height="20" patternUnits="userSpaceOnUse"><line x1="0" y1="19" x2="100" y2="19" stroke="rgba(139,69,19,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23paper-lines)"/></svg>');
            opacity: 0.3;
            border-radius: 15px;
        }

        .page-header {
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
            z-index: 2;
        }

        .page-year {
            font-size: 2.5rem;
            font-weight: 800;
            color: #8b4513;
            margin-bottom: 0.5rem;
            font-family: 'Georgia', serif;
        }

        .page-subtitle {
            font-size: 1.1rem;
            color: #a0522d;
            font-style: italic;
        }

        /* Photo Grid */
        .photo-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            position: relative;
            z-index: 2;
            justify-items: center;
        }

        /* Fix single item stretching */
        .photo-grid .photo-card {
            max-width: 350px;
            width: 100%;
        }

        /* Photo Cards */
        .photo-card {
            background: white;
            border-radius: 15px;
            padding: 1rem;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            position: relative;
            transform: rotate(-1deg);
        }

        .photo-card:nth-child(even) {
            transform: rotate(1deg);
        }

        .photo-card:nth-child(3n) {
            transform: rotate(-0.5deg);
        }

        .photo-card:hover {
            transform: rotate(0deg) translateY(-10px) scale(1.05);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
            z-index: 10;
        }

        /* Polaroid Style */
        .photo-frame {
            background: #f8f8f8;
            padding: 1rem 1rem 3rem 1rem;
            border-radius: 10px;
            position: relative;
            margin-bottom: 1rem;
        }

        .photo-content {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            min-height: 180px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .medal-photo {
            font-size: 4rem;
            animation: photoFloat 3s ease-in-out infinite;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
        }

        @keyframes photoFloat {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            33% { transform: translateY(-5px) rotate(2deg); }
            66% { transform: translateY(5px) rotate(-2deg); }
        }

        .photo-caption {
            position: absolute;
            bottom: 0.5rem;
            left: 1rem;
            right: 1rem;
            text-align: center;
            font-size: 0.9rem;
            color: #666;
            font-family: 'Georgia', serif;
            font-style: italic;
        }

        /* Card Details */
        .card-details {
            padding: 1rem 0;
        }

        .achievement-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #8b4513;
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .student-name {
            font-size: 1rem;
            color: #2563eb;
            font-weight: 600;
            text-align: center;
            margin-bottom: 1rem;
        }

        .detail-list {
            display: grid;
            gap: 0.5rem;
        }

        .detail-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
            border-bottom: 1px solid #e5e7eb;
            font-size: 0.9rem;
        }

        .detail-label {
            color: #6b7280;
            font-weight: 500;
        }

        .detail-value {
            color: #374151;
            font-weight: 600;
            text-align: right;
        }

        /* Corner decorations */
        .photo-card::before,
        .photo-card::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            background: #deb887;
            opacity: 0.6;
        }

        .photo-card::before {
            top: -3px;
            left: -3px;
            border-radius: 0 0 15px 0;
        }

        .photo-card::after {
            bottom: -3px;
            right: -3px;
            border-radius: 15px 0 0 0;
        }

        /* Enhanced Empty State */
        .empty-album {
            text-align: center;
            padding: 4rem 2rem;
            color: #8b4513;
            max-width: 800px;
            margin: 0 auto;
        }

        .empty-album-icon {
            font-size: 4rem;
            margin-bottom: 2rem;
            opacity: 0.8;
        }

        .empty-title {
            font-size: 2.2rem;
            margin-bottom: 1rem;
            font-family: 'Georgia', serif;
            font-weight: bold;
            color: #ffffff;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
        }

        .empty-subtitle {
            font-size: 1.2rem;
            font-style: italic;
            opacity: 0.9;
            margin-bottom: 3rem;
            line-height: 1.6;
            color: #ffffff;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        }

        .preview-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
            padding: 2rem;
            background: rgba(222, 184, 135, 0.3);
            border-radius: 15px;
            border: 2px dashed #deb887;
        }

        .preview-card {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1.5rem;
            background: rgba(245, 222, 179, 0.8);
            border-radius: 12px;
            border: 1px solid #deb887;
            transition: transform 0.3s ease;
        }

        .preview-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
        }

        .preview-medal {
            font-size: 2.5rem;
            flex-shrink: 0;
        }

        .preview-text {
            display: flex;
            flex-direction: column;
            text-align: left;
        }

        .preview-text strong {
            font-size: 1.1rem;
            font-weight: bold;
            color: #654321;
            margin-bottom: 0.25rem;
        }

        .preview-text span {
            font-size: 0.9rem;
            color: #8b4513;
            opacity: 0.8;
            font-style: italic;
        }

        .empty-footer {
            margin-top: 3rem;
            padding-top: 2rem;
        }

        .coming-soon {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: #ffffff;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        .vintage-divider {
            width: 200px;
            height: 2px;
            background: linear-gradient(90deg, transparent, #ffffff, transparent);
            margin: 1.5rem auto;
            opacity: 0.6;
        }

        .empty-quote {
            font-size: 1rem;
            font-style: italic;
            color: #ffffff;
            opacity: 0.9;
            font-family: 'Georgia', serif;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        /* Quote Section Styles */
        .quote-section {
            background: rgba(139, 69, 19, 0.1);
            padding: 0.8rem 0;
            margin: 1rem 0;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .quote-content {
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
            padding: 0;
        }

        .motivational-quote {
            font-size: 1.4rem;
            font-style: italic;
            color: #000000;
            opacity: 1;
            font-family: 'Georgia', serif;
            text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 1px 1px 2px rgba(255, 255, 255, 1), -1px -1px 1px rgba(255, 255, 255, 0.6);
            line-height: 1.6;
            margin: 0;
            position: relative;
            font-weight: 700;
            white-space: nowrap;
        }

        .motivational-quote::before,
        .motivational-quote::after {
            content: '"';
            font-size: 2rem;
            color: #000000;
            opacity: 1;
            text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 1px 1px 2px rgba(255, 255, 255, 1), -1px -1px 1px rgba(255, 255, 255, 0.6);
        }

        .quote-section .vintage-divider {
            margin: 0.15rem auto;
            width: 200px;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .album-hero {
                padding: 2.5rem 0 0.5rem 0;
                margin-top: 1rem;
            }

            .album-title {
                font-size: 1.8rem;
                line-height: 1.2;
                margin-bottom: 0.5rem;
            }

            .album-subtitle {
                font-size: 1rem;
                margin-bottom: 1rem;
                line-height: 1.3;
                padding: 0 1rem;
            }

            .album-stats {
                flex-direction: column;
                justify-content: center;
                gap: 0.75rem;
                padding: 1.5rem 1rem;
                margin: 1rem;
                max-width: none;
            }

            .stat-book {
                display: flex;
                align-items: center;
                gap: 0.75rem;
                text-align: left;
            }

            .stat-book::before {
                font-size: 1.5rem;
                margin-bottom: 0;
                flex-shrink: 0;
            }

            .stat-content {
                display: flex;
                align-items: baseline;
                gap: 0.5rem;
            }

            .stat-number {
                font-size: 1.5rem;
                line-height: 1;
            }

            .stat-label {
                font-size: 0.8rem;
                line-height: 1;
            }

            .back-button {
                margin: 1rem 0;
                padding: 0.75rem 1.5rem;
                font-size: 0.9rem;
            }

            .album-container {
                padding: 2rem 0;
            }

            .album-book {
                margin: 0 0.5rem;
                padding: 1.5rem 1rem;
            }

            .album-tabs {
                padding: 0;
                gap: 0.25rem;
                margin-bottom: 2rem;
                flex-wrap: wrap;
                justify-content: center;
            }

            .album-tab {
                padding: 0.5rem 0.75rem;
                font-size: 0.8rem;
                min-width: auto;
                flex: 0 0 auto;
            }

            .photo-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .photo-card {
                margin: 0 0.5rem;
            }

            .photo-card:hover {
                transform: translateY(-3px) scale(1.01);
            }

            .album-page {
                padding: 1.5rem 0.5rem;
                margin: 0;
            }

            .page-year {
                font-size: 1.8rem;
                margin-bottom: 0.25rem;
            }

            .page-subtitle {
                font-size: 0.95rem;
                margin-bottom: 1.5rem;
            }

            .medal-photo {
                font-size: 3rem;
            }

            .achievement-title {
                font-size: 1rem;
                line-height: 1.3;
            }

            .student-name {
                font-size: 0.9rem;
            }

            .detail-item {
                font-size: 0.85rem;
                padding: 0.4rem 0;
            }

            .photo-frame {
                padding: 0.75rem 0.75rem 2rem 0.75rem;
                margin-bottom: 0.75rem;
            }

            .photo-content {
                min-height: 120px;
            }

            /* Mobile Quote Section */
            .quote-section {
                padding: 0;
                margin: 0.5rem 0;
            }

            .quote-content {
                padding: 0 1rem;
            }

            .motivational-quote {
                font-size: 1.1rem;
                line-height: 1.5;
                margin: 0;
                white-space: normal;
            }

            .motivational-quote::before,
            .motivational-quote::after {
                font-size: 1.5rem;
            }
        }

        /* Extra small screens */
        @media (max-width: 480px) {
            .album-hero {
                padding: 2rem 0 0.5rem 0;
            }

            .album-title {
                font-size: 1.5rem;
            }

            .album-stats {
                padding: 1rem;
                gap: 0.5rem;
            }

            .stat-book {
                gap: 0.5rem;
            }

            .stat-content {
                gap: 0.4rem;
            }

            .stat-number {
                font-size: 1.3rem;
            }

            .stat-label {
                font-size: 0.75rem;
            }

            /* Mobile Empty State */
            .empty-album {
                padding: 3rem 1rem;
            }

            .empty-album-icon {
                font-size: 3rem;
            }

            .empty-title {
                font-size: 1.8rem;
            }

            .empty-subtitle {
                font-size: 1rem;
                margin-bottom: 2rem;
            }

            .preview-gallery {
                grid-template-columns: 1fr;
                gap: 1.5rem;
                margin: 2rem 0;
                padding: 1.5rem;
            }

            .preview-card {
                padding: 1rem;
                gap: 0.75rem;
            }

            .preview-medal {
                font-size: 2rem;
            }

            .preview-text strong {
                font-size: 1rem;
            }

            .preview-text span {
                font-size: 0.85rem;
            }

            .album-tabs {
                gap: 0.25rem;
            }

            .album-tab {
                font-size: 0.75rem;
                padding: 0.4rem 0.6rem;
            }

            .photo-card {
                margin: 0;
            }
        }

        /* Tape effects */
        .tape {
            position: absolute;
            background: rgba(255, 255, 255, 0.8);
            border: 2px solid rgba(0, 0, 0, 0.1);
        }

        .tape-1 {
            top: -10px;
            right: 20px;
            width: 60px;
            height: 25px;
            transform: rotate(15deg);
        }

        .tape-2 {
            bottom: -10px;
            left: 20px;
            width: 50px;
            height: 25px;
            transform: rotate(-10deg);
        }

        /* Page flip sound effect simulation */
        .album-page.flipping {
            animation: pageFlipSound 0.1s ease-in-out;
        }

        @keyframes pageFlipSound {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(0.98); }
        }

        /* Footer Styles from index.php */

