/* Namaz Vakitleri Detay CSS */
/* Modern Prayer Times Detail Page Design */

/* CSS Variables */
:root {
    --prayer-primary: #549076;
    --prayer-secondary: #4a7c64;
    --prayer-accent: #6ba085;
    --prayer-light: #e8f5f0;
    --prayer-lighter: #f5faf8;
    --prayer-dark: #2c5643;
    --prayer-text: #333333;
    --prayer-text-light: #666666;
    --prayer-white: #ffffff;
    --prayer-shadow: rgba(84, 144, 118, 0.1);
    --prayer-shadow-hover: rgba(84, 144, 118, 0.2);
    --prayer-border: #e0e0e0;
    --prayer-gradient: linear-gradient(135deg, var(--prayer-primary) 0%, var(--prayer-secondary) 100%);
    --prayer-gradient-light: linear-gradient(135deg, var(--prayer-light) 0%, var(--prayer-lighter) 100%);
    --prayer-transition: all 0.3s ease;
    --prayer-radius: 12px;
    --prayer-radius-small: 8px;
    --prayer-spacing: 2rem;
    --prayer-spacing-small: 1rem;
}

/* Prayer Times Header Section */
.prayer-times-header {
    padding: var(--prayer-spacing) 0;
    background: var(--prayer-gradient-light);
    position: relative;
    overflow: hidden;
}

.prayer-times-header::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="mosque-pattern" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M25 10 L30 20 L35 10 L40 20 L45 10 L25 10 Z" fill="rgba(84,144,118,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23mosque-pattern)"/></svg>') repeat;
    opacity: 0.3;
}

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

.prayer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--prayer-gradient);
    color: var(--prayer-white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px var(--prayer-shadow);
}

.prayer-badge i {
    font-size: 1.1rem;
}

.prayer-header-content h1 {
    font-size: 2.5rem;
    color: var(--prayer-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.prayer-header-content p {
    font-size: 1.1rem;
    color: var(--prayer-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Current Prayer Times Display */
.current-prayer-times {
    padding: var(--prayer-spacing) 0;
    background: var(--prayer-white);
}

.current-times-wrapper {
    background: var(--prayer-gradient);
    border-radius: var(--prayer-radius);
    padding: 2rem;
    color: var(--prayer-white);
    box-shadow: 0 8px 32px var(--prayer-shadow-hover);
    position: relative;
    overflow: hidden;
}

.current-times-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.date-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.current-date {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gregorian-date {
    font-size: 1.4rem;
    font-weight: 700;
}

.hijri-date {
    font-size: 1.1rem;
    opacity: 0.9;
}

.moon-phase {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1rem;
    border-radius: var(--prayer-radius-small);
    backdrop-filter: blur(10px);
}

.moon-phase img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.moon-phase span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Times Grid */
.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.time-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--prayer-radius-small);
    padding: 1.25rem 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--prayer-transition);
    position: relative;
    overflow: hidden;
}

.time-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: var(--prayer-transition);
}

.time-card.active::before {
    background: var(--prayer-white);
}

.time-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
}

.time-card.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.time-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.time-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

/* Remaining Time Section */
.remaining-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.remaining-info,
.current-time {
    text-align: center;
}

.remaining-label,
.time-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    display: block;
}

.countdown-timer,
.current-time-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

/* Special Prayer Times */
.special-times {
    padding: var(--prayer-spacing) 0;
    background: var(--prayer-lighter);
}

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

.special-time-card {
    background: var(--prayer-white);
    border-radius: var(--prayer-radius);
    padding: 2rem;
    box-shadow: 0 4px 16px var(--prayer-shadow);
    transition: var(--prayer-transition);
    position: relative;
    overflow: hidden;
}

.special-time-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--prayer-gradient);
}

.special-time-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px var(--prayer-shadow-hover);
}

.special-icon {
    width: 60px;
    height: 60px;
    background: var(--prayer-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--prayer-white);
    font-size: 1.5rem;
}

.special-content h3 {
    font-size: 1.3rem;
    color: var(--prayer-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.special-date,
.special-info {
    font-size: 1rem;
    color: var(--prayer-text-light);
    margin-bottom: 0.5rem;
}

.special-time {
    font-size: 1.4rem;
    color: var(--prayer-primary);
    font-weight: 700;
}

/* Monthly Prayer Times */
.monthly-times {
    padding: var(--prayer-spacing) 0;
    background: var(--prayer-white);
}

.monthly-header {
    text-align: center;
    margin-bottom: 3rem;
}

.monthly-header h2 {
    font-size: 2.2rem;
    color: var(--prayer-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.monthly-header p {
    font-size: 1.1rem;
    color: var(--prayer-text-light);
}

.table-container {
    background: var(--prayer-white);
    border-radius: var(--prayer-radius);
    box-shadow: 0 4px 16px var(--prayer-shadow);
    overflow: hidden;
    overflow-x: auto;
}

.prayer-times-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.prayer-times-table thead th {
    background: var(--prayer-gradient);
    color: var(--prayer-white);
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.prayer-times-table tbody td {
    padding: 0.875rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--prayer-border);
    transition: var(--prayer-transition);
}

.prayer-times-table tbody tr:hover {
    background: var(--prayer-light);
}

.prayer-times-table tbody tr.today-row {
    background: var(--prayer-light);
    font-weight: 600;
    color: var(--prayer-dark);
}

.prayer-times-table tbody tr.today-row td {
    border-bottom: 2px solid var(--prayer-primary);
}

/* Prayer Information Cards */
.prayer-info {
    padding: var(--prayer-spacing) 0;
    background: var(--prayer-lighter);
}

.prayer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--prayer-white);
    border-radius: var(--prayer-radius);
    padding: 2rem;
    box-shadow: 0 4px 16px var(--prayer-shadow);
    transition: var(--prayer-transition);
    border-left: 4px solid var(--prayer-primary);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--prayer-shadow-hover);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--prayer-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--prayer-primary);
    font-size: 1.3rem;
}

.info-content h3 {
    font-size: 1.2rem;
    color: var(--prayer-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.info-content p {
    color: var(--prayer-text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content strong {
    color: var(--prayer-primary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .prayer-header-content h1 {
        font-size: 2.2rem;
    }
    
    .times-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .special-times-grid {
        grid-template-columns: 1fr;
    }
    
    .prayer-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --prayer-spacing: 1.5rem;
    }
    
    .prayer-header-content h1 {
        font-size: 1.8rem;
    }
    
    .prayer-header-content p {
        font-size: 1rem;
    }
    
    .current-times-wrapper {
        padding: 1.5rem;
    }
    
    .date-info {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .times-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .time-card {
        padding: 1rem 0.75rem;
    }
    
    .time-value {
        font-size: 1.3rem;
    }
    
    .remaining-time {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .countdown-timer,
    .current-time-value {
        font-size: 1.6rem;
    }
    
    .special-time-card,
    .info-card {
        padding: 1.5rem;
    }
    
    .table-container {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .prayer-times-table {
        font-size: 0.85rem;
    }
    
    .prayer-times-table thead th,
    .prayer-times-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .prayer-header-content h1 {
        font-size: 1.6rem;
    }
    
    .prayer-badge {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .times-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-card {
        padding: 0.875rem 0.5rem;
    }
    
    .time-label {
        font-size: 0.8rem;
    }
    
    .time-value {
        font-size: 1.1rem;
    }
    
    .special-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .special-content h3 {
        font-size: 1.1rem;
    }
    
    .info-content h3 {
        font-size: 1.1rem;
    }
    
    .prayer-times-table {
        font-size: 0.8rem;
    }
    
    .prayer-times-table thead th,
    .prayer-times-table tbody td {
        padding: 0.6rem 0.3rem;
    }
    
    .prayer-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .prayer-times-header,
    .current-prayer-times,
    .special-times,
    .prayer-info {
        break-inside: avoid;
    }
    
    .current-times-wrapper {
        background: var(--prayer-light) !important;
        color: var(--prayer-dark) !important;
    }
    
    .time-card {
        background: var(--prayer-lighter) !important;
        color: var(--prayer-dark) !important;
    }
    
    .prayer-times-table {
        break-inside: auto;
    }
    
    .prayer-times-table thead {
        display: table-header-group;
    }
}

/* Accessibility Enhancements */
.time-card:focus,
.special-time-card:focus,
.info-card:focus {
    outline: 2px solid var(--prayer-primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --prayer-primary: #1a5a3a;
        --prayer-secondary: #2d4a3d;
        --prayer-text: #000000;
        --prayer-text-light: #333333;
    }
}

/* Pattern Background Animation */
@keyframes mosque-pattern {
    0% { transform: translateX(0px); }
    100% { transform: translateX(25px); }
}

.prayer-times-header::before {
    animation: mosque-pattern 20s linear infinite;
}

/* Pulse animation for active time card */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.time-card.active {
    animation: pulse 2s infinite;
}

/* Countdown timer blinking effect */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.countdown-timer {
    animation: blink 1s infinite;
}

/* Smooth fade-in animation for sections */
.prayer-times-header,
.current-prayer-times,
.special-times,
.monthly-times,
.prayer-info {
    opacity: 1;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Loading state styles */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .time-value::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
} 