/* Poetry Page Styles - Elegant and Romantic Design */

/* Import Google Fonts for elegant typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Noto+Nastaliq+Urdu:wght@400;500;600&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.8;
    color: #2c1810;
    background: linear-gradient(135deg, #fdf6f0 0%, #f8f4f1 50%, #f0e6e0 100%);
    min-height: 100vh;
    background-attachment: fixed;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* Top Banner New */
.top-banner-new {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.banner-container {
    width: 660px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.banner-content-new {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
    from {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.8);
    }
}

.banner-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Background effects for banner */
.top-banner-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: background-pulse 6s ease-in-out infinite;
}

@keyframes background-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.top-banner-new::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    background-size: 100px 100px;
    animation: pattern-slide 20s linear infinite;
}

@keyframes pattern-slide {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* Colorful Poetry Header */
.colorful-poetry-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    min-height: 300px;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: 1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.floating-flower {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.floating-flower:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-flower:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.floating-flower:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.floating-flower:nth-child(4) {
    top: 70%;
    right: 25%;
    animation-delay: 3s;
}

.floating-flower:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

.floating-flower:nth-child(6) {
    top: 80%;
    left: 70%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.header-content {
    position: relative;
    z-index: 3;
    padding: 3rem 2rem;
    text-align: center;
}

.header-title-section {
    margin-bottom: 2rem;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.8);
    }
}

.subtitle {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.decoration-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 2px;
}

.decoration-symbol {
    font-size: 1.5rem;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-icon {
    font-size: 2rem;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-text {
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Poetry Header */
.poetry-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid #d4a574;
    position: relative;
}

.poetry-header::before {
    content: '❀';
    font-size: 2rem;
    color: #c17f59;
    display: block;
    margin-bottom: 1rem;
}

.poetry-header::after {
    content: '❀';
    font-size: 2rem;
    color: #c17f59;
    display: block;
    margin-top: 1rem;
}

.poetry-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b4513;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1);
    letter-spacing: 1px;
}

.poetry-subtitle {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.8rem;
    color: #a0522d;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Location Section - Hidden but styled for potential use */
.location-section {
    margin-bottom: 3rem;
    display: none; /* Hidden as per current design */
}

.location-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(212, 165, 116, 0.3);
    backdrop-filter: blur(10px);
}

/* Poetry Content Section */
.gallery {
    margin-bottom: 3rem;
}

.gallery-grid {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.15);
    border: 2px solid rgba(212, 165, 116, 0.2);
    position: relative;
    overflow: hidden;
}

.gallery-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4a574, #c17f59, #a0522d, #8b4513);
}

.gallery-grid p {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.4rem;
    line-height: 2.2;
    color: #2c1810;
    text-align: center;
    margin: 0;
    white-space: pre-line;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* Poetry Thumbnails Section */
.poetry-thumbnails {
    margin-bottom: 3rem;
}

.thumbnails-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #8b4513;
    position: relative;
}

.thumbnails-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4a574, #c17f59);
    border-radius: 2px;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.poetry-thumbnail {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.poetry-thumbnail:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    border-color: rgba(212, 165, 116, 0.4);
}

.thumbnail-image {
    height: 180px;
    background: linear-gradient(135deg, #fdf6f0, #f8f4f1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumbnail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212, 165, 116, 0.1), rgba(193, 127, 89, 0.1));
    z-index: 1;
}

.poetry-preview {
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 1rem;
}

.poetry-preview h3 {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.3rem;
    color: #8b4513;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.poetry-preview p {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1rem;
    color: #a0522d;
    margin: 0;
    line-height: 1.6;
}

.thumbnail-content {
    padding: 1.5rem;
    text-align: center;
}

.thumbnail-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #2c1810;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.thumbnail-content p {
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Decorative elements for thumbnails */
.poetry-thumbnail::before {
    content: '❀';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.2rem;
    color: #c17f59;
    opacity: 0.7;
    z-index: 3;
}

.poetry-thumbnail:nth-child(even)::before {
    content: '🌸';
}

.poetry-thumbnail:nth-child(3n)::before {
    content: '🌺';
}

.poetry-thumbnail:nth-child(4n)::before {
    content: '🌹';
}

.poetry-thumbnail:nth-child(5n)::before {
    content: '🌷';
}

.poetry-thumbnail:nth-child(6n)::before {
    content: '🌼';
}

/* Decorative elements */
.poetry-decoration {
    text-align: center;
    margin: 2rem 0;
    font-size: 1.5rem;
    color: #c17f59;
}

.poetry-decoration::before,
.poetry-decoration::after {
    content: '❀ ❀ ❀';
    display: block;
    margin: 1rem 0;
    font-size: 1.2rem;
    letter-spacing: 1rem;
}

/* Buttons - Styled for potential future use */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid #d4a574;
    border-radius: 25px;
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #fdf6f0, #f8f4f1);
    color: #8b4513;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4a574, #c17f59);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #d4a574, #c17f59);
    color: white;
    border-color: #a0522d;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c17f59, #a0522d);
    border-color: #8b4513;
}

/* Status Messages */
.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 15px;
    font-weight: 500;
    border: 1px solid;
}

.status-message.success {
    background: rgba(212, 165, 116, 0.1);
    color: #8b4513;
    border-color: #d4a574;
}

.status-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem 15px;
    }
    
    .top-banner-new {
        height: 120px;
    }
    
    .banner-container {
        width: 100%;
        max-width: 500px;
        height: 120px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .colorful-poetry-header {
        min-height: 250px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .header-nav {
        gap: 1rem;
    }
    
    .nav-item {
        padding: 0.8rem 1rem;
        min-width: 100px;
    }
    
    .nav-icon {
        font-size: 1.5rem;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
    
    .poetry-title {
        font-size: 2rem;
    }
    
    .poetry-subtitle {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .gallery-grid p {
        font-size: 1.2rem;
        line-height: 2;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 1rem;
        min-width: 140px;
    }
    
    .thumbnails-title {
        font-size: 1.6rem;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .thumbnail-image {
        height: 150px;
    }
    
    .poetry-preview h3 {
        font-size: 1.1rem;
    }
    
    .poetry-preview p {
        font-size: 0.9rem;
    }
    
    .thumbnail-content {
        padding: 1rem;
    }
    
    .thumbnail-content h4 {
        font-size: 1.1rem;
    }
    
    .thumbnail-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .top-banner-new {
        height: 100px;
    }
    
    .banner-container {
        width: 100%;
        max-width: 400px;
        height: 100px;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-subtitle {
        font-size: 0.9rem;
    }
    
    .colorful-poetry-header {
        min-height: 200px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .header-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-item {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
        min-width: auto;
    }
    
    .nav-icon {
        font-size: 1.2rem;
    }
    
    .nav-text {
        font-size: 0.75rem;
    }
    
    .poetry-title {
        font-size: 1.8rem;
    }
    
    .poetry-subtitle {
        font-size: 1.3rem;
    }
    
    .gallery-grid {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .gallery-grid p {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .poetry-decoration::before,
    .poetry-decoration::after {
        font-size: 1rem;
        letter-spacing: 0.5rem;
    }
    
    .thumbnails-title {
        font-size: 1.4rem;
    }
    
    .thumbnails-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .thumbnail-image {
        height: 120px;
    }
    
    .poetry-preview h3 {
        font-size: 1rem;
    }
    
    .poetry-preview p {
        font-size: 0.8rem;
    }
    
    .thumbnail-content {
        padding: 0.8rem;
    }
    
    .thumbnail-content h4 {
        font-size: 1rem;
    }
    
    .thumbnail-content p {
        font-size: 0.75rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus {
    outline: 2px solid #d4a574;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .location-card,
    .btn {
        display: none;
    }
    
    .gallery-grid {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .poetry-title,
    .poetry-subtitle {
        color: #000;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-grid {
    animation: fadeInUp 0.8s ease-out;
}

/* Hover effects for poetry text */
.gallery-grid:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f4f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d4a574, #c17f59);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c17f59, #a0522d);
}
