/* ===================================
   TIPPS PAGE SPECIFIC STYLES
   =================================== */

.tipps-hero {
    background: linear-gradient(135deg,
        rgba(255, 183, 197, 0.15) 0%,
        rgba(212, 181, 241, 0.15) 100%);
    padding: var(--spacing-xl) 0;
}

/* ===================================
   GENERATOR CARD
   =================================== */

.generator-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.generator-content {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.generator-content h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.generator-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.tip-display {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.tip-card-flip {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-md);
    animation: flip-in 0.6s ease-out;
}

.tip-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.tip-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.tip-category {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.tip-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding: var(--spacing-md);
    background: rgba(255, 183, 197, 0.1);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

/* ===================================
   FILTER SECTION
   =================================== */

.filter-section {
    padding: var(--spacing-lg) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid #E2E8F0;
}

.filter-bar {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--text-light);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-select:hover {
    border-color: var(--primary);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    margin-left: auto;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 2px solid var(--text-light);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* ===================================
   VIDEOS SECTION
   =================================== */

.videos-section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--text-light);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    font-weight: 600;
}

.view-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: transparent;
}

.view-btn:hover:not(.active) {
    border-color: var(--primary);
}

[data-theme="dark"] .view-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .view-btn:hover:not(.active) {
    border-color: var(--primary);
    background: rgba(255, 183, 197, 0.1);
}

[data-theme="dark"] .videos-grid.list-view .video-card-item {
    background: #231f3d;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .videos-grid.list-view .video-card-item:hover {
    border-color: rgba(255, 183, 197, 0.3);
    box-shadow: 0 4px 20px rgba(255, 183, 197, 0.15);
}

[data-theme="dark"] .video-card-item {
    background: #231f3d;
}

[data-theme="dark"] .video-card-item:hover {
    box-shadow: 0 8px 30px rgba(255, 183, 197, 0.2);
}

[data-theme="dark"] .tip-display {
    background: #1a1a2e;
}

[data-theme="dark"] .tip-card-flip {
    background: #231f3d;
}

[data-theme="dark"] .tip-description {
    background: rgba(255, 183, 197, 0.15);
    border-left-color: var(--primary);
}

/* ===================================
   VIDEO GRID
   =================================== */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.video-card-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-card-item[onclick] {
    cursor: pointer;
}

.video-card-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail-large {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg,
        var(--primary) 0%,
        var(--accent) 50%,
        var(--secondary) 100%);
}

.placeholder-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card-item:hover .video-overlay {
    opacity: 1;
}

.play-button-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
}

.play-button-large:hover {
    transform: scale(1.1);
}

.video-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-badge.popular {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

.video-badge.crazy {
    background: linear-gradient(135deg, #9B59B6 0%, #E91E63 100%);
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===================================
   VIDEO INFO
   =================================== */

.video-info {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-title-large {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
    min-height: 4.8em;
}

.video-meta-large {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.meta-tag {
    display: inline-block;
    background: rgba(255, 183, 197, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.meta-views {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===================================
   VIDEO ACTIONS
   =================================== */

.video-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.action-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--primary);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: transparent;
}

/* Dark Mode Styles for Action Buttons */
[data-theme="dark"] .action-btn {
    background: rgba(255, 183, 197, 0.15);
    border-color: var(--primary);
    color: var(--text-primary);
}

[data-theme="dark"] .action-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #1a1a2e;
    border-color: transparent;
}

.action-btn.favorite {
    flex: 0;
    padding: 0.6rem 1.2rem;
}

.action-btn.favorite.active {
    background: #FFE5EC;
    border-color: #FF1744;
}

/* ===================================
   LOAD MORE
   =================================== */

.load-more {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* ===================================
   LIST VIEW (Alternative Layout)
   =================================== */

.videos-grid.list-view {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.videos-grid.list-view .video-card-item {
    display: flex;
    flex-direction: row;
    min-height: 180px;
}

.videos-grid.list-view .video-card-item:hover {
    transform: translateY(0) translateX(4px);
}

.videos-grid.list-view .video-thumbnail-large {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    aspect-ratio: 16/9;
}

.videos-grid.list-view .video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
}

.videos-grid.list-view .video-title-large {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.videos-grid.list-view .video-description {
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.videos-grid.list-view .video-actions {
    margin-top: auto;
    max-width: 200px;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes flip-in {
    0% {
        transform: rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0);
        opacity: 1;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-select {
        width: 100%;
    }

    .search-box {
        margin-left: 0;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .videos-grid.list-view .video-card-item {
        flex-direction: column;
    }

    .videos-grid.list-view .video-thumbnail-large {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .generator-card {
        padding: var(--spacing-md);
    }

    .tip-card-flip {
        padding: var(--spacing-md);
    }

    .tip-title {
        font-size: 1.4rem;
    }

    .video-actions {
        flex-direction: column;
    }

    .action-btn.favorite {
        flex: 1;
    }
}
