/* ABOUTME: Main stylesheet for OpenVine website - Exact Vine classic layout replica
   ABOUTME: Recreates the original Vine website design with three-column layout */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

/* Links */
a {
    color: #00bf8f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.vine-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e1e8ed;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: auto;
    box-shadow: none;
    padding: 0;
}

.vine-header-bg {
    display: none;
}

.vine-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    height: 60px;
    position: relative;
    z-index: 10;
}

.vine-logo {
    font-family: 'Pacifico', cursive;
    color: #00bf8f;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: normal;
    text-decoration: none;
    margin-bottom: 0;
}

.vine-hero-section {
    text-align: center;
    padding: 20px 20px 30px;
    position: relative;
    z-index: 10;
    background: transparent;
}

.vine-tagline {
    font-size: 22px;
    font-weight: 300;
    margin: 0 0 20px 0;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.vine-search-container {
    max-width: 500px;
    margin: 0 auto 15px;
}

.vine-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e1e8ed;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    outline: none;
}

.vine-app-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.vine-app-btn {
    background: #00bf8f;
    color: white;
    padding: 8px 20px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
}

.vine-app-btn:hover {
    background: #00a077;
    text-decoration: none;
}

.vine-auth-buttons {
    position: static;
    display: flex;
    gap: 10px;
}

.vine-auth-btn {
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.vine-signup-btn {
    background-color: #00bf8f;
    color: white;
    border: 1px solid #00bf8f;
}

.vine-signup-btn:hover {
    background-color: #00a77d;
}

.vine-login-btn {
    background-color: transparent;
    color: #00bf8f;
    border: 1px solid #00bf8f;
    padding: 6px 16px;
    font-size: 13px;
}

.vine-login-btn:hover {
    background-color: #00bf8f;
    color: white;
    text-decoration: none;
}

/* Main Layout */
.vine-main-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 0 20px;
    justify-content: center;
}

/* Left Sidebar - Channels */
.vine-sidebar-left {
    background: white;
}

.vine-categories h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.vine-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.vine-category-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
    font-size: 18px;
    transition: transform 0.1s ease;
}

.vine-category-item:hover {
    transform: scale(1.1);
}

/* Channel Colors - Exact Vine colors */
.vine-category-item:nth-child(1) { background: #FF8800; } /* Orange */
.vine-category-item:nth-child(2) { background: #00CCFF; } /* Light Blue */
.vine-category-item:nth-child(3) { background: #CC0066; } /* Pink */
.vine-category-item:nth-child(4) { background: #00BF8F; } /* Vine Green */

.vine-category-item:nth-child(5) { background: #0066CC; } /* Blue */
.vine-category-item:nth-child(6) { background: #FF0066; } /* Hot Pink */
.vine-category-item:nth-child(7) { background: #FF6600; } /* Orange Red */
.vine-category-item:nth-child(8) { background: #9933CC; } /* Purple */

.vine-category-item:nth-child(9) { background: #FFCC00; } /* Yellow */
.vine-category-item:nth-child(10) { background: #00CCCC; } /* Cyan */
.vine-category-item:nth-child(11) { background: #FF3366; } /* Red Pink */
.vine-category-item:nth-child(12) { background: #00CC66; } /* Green */

.vine-category-item:nth-child(13) { background: #FF9900; } /* Orange */
.vine-category-item:nth-child(14) { background: #3366FF; } /* Blue */
.vine-category-item:nth-child(15) { background: #CC3366; } /* Dark Pink */
.vine-category-item:nth-child(16) { background: #333333; } /* Black */

.vine-category-item:nth-child(17) { background: #00CC99; } /* Teal */
.vine-category-item:nth-child(18) { background: #6633CC; } /* Deep Purple */
.vine-category-item:nth-child(19) { background: #FF6666; } /* Light Red */
.vine-category-item:nth-child(20) { background: #009966; } /* Dark Green */

.vine-category-item:nth-child(21) { background: #CC0033; } /* Dark Red */
.vine-category-item:nth-child(22) { background: #0099CC; } /* Sky Blue */
.vine-category-item:nth-child(23) { background: #CC6699; } /* Pink Purple */
.vine-category-item:nth-child(24) { background: #669900; } /* Olive */

/* Center Content - Video Feed */
.vine-main-content {
    background: transparent;
    max-width: 600px;
}

.vine-video-feed {
    width: 100%;
}

/* Video Item in Feed */
.vine-video-feed-item {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.vine-video-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e1e8ed;
}

.vine-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}

.vine-user-info {
    flex: 1;
}

.vine-username {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    line-height: 1.2;
}

.vine-timestamp {
    font-size: 11px;
    color: #8899a6;
}

.vine-video-container {
    position: relative;
    background: #000;
    cursor: pointer;
}

.vine-video-container video {
    width: 100%;
    display: block;
    max-height: 600px;
    object-fit: contain;
}

.vine-video-footer {
    padding: 10px 12px;
}

.vine-video-caption {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.vine-video-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #8899a6;
}

.vine-video-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Featured Section */
.vine-featured-section {
    background: white;
    margin-bottom: 20px;
}

.vine-featured-header {
    padding: 15px;
    border-bottom: 1px solid #e1e8ed;
}

.vine-featured-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.vine-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
}

.vine-featured-item {
    cursor: pointer;
}

.vine-featured-thumb {
    position: relative;
    padding-bottom: 100%;
    background: #f0f0f0;
    overflow: hidden;
    border-radius: 4px;
}

.vine-featured-thumb video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Sidebar */
.vine-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Featured Viners */
.vine-featured-viners {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 3px;
    padding: 12px;
}

.vine-featured-viners h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.vine-viners-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vine-viner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.vine-viner-item:hover {
    background: #f5f5f5;
}

.vine-viner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.vine-viner-info {
    flex: 1;
}

.vine-viner-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.vine-viner-followers {
    font-size: 11px;
    color: #8899a6;
}

/* Editor's Pick in Sidebar */
.vine-sidebar-left .vine-editors-pick {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.vine-sidebar-left .vine-editors-pick h3 {
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    border-bottom: 1px solid #e1e8ed;
    color: #333;
}

.vine-sidebar-left .vine-editors-video {
    position: relative;
    background: #000;
    padding-bottom: 100%; /* Square aspect ratio */
}

.vine-sidebar-left .vine-editors-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* About Section in Sidebar */
.vine-about-section {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 3px;
    padding: 15px;
    margin-top: 20px;
}

.vine-about-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.vine-about-section p {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 12px;
}

.vine-about-link {
    font-size: 13px;
    color: #00bf8f;
    text-decoration: none;
    font-weight: 500;
}

.vine-about-link:hover {
    text-decoration: underline;
}

/* About Page Styles */
.about-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero-about {
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.hero-content .subtitle {
    font-size: 18px;
    color: #666;
}

.story-section {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.story-content h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.vine-brand {
    color: #00bf8f;
}

.story-block {
    margin-bottom: 30px;
}

.intro-text {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

.memory-card {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f9f7 0%, #e8f5f0 100%);
    border-radius: 15px;
    border: 2px solid #00bf8f;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 191, 143, 0.15);
    transform: perspective(1000px) rotateX(2deg);
}

.memory-card::before {
    content: '🍇';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 40px;
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 191, 143, 0.3);
}

.philosophy-section {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(45deg, #fff5f0 0%, #f0fff0 100%);
    border-radius: 20px 5px 20px 5px;
    border: 2px solid #00bf8f;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.philosophy-section::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 35px;
    background: rgba(0, 191, 143, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rights-section {
    margin-bottom: 40px;
    padding: 35px;
    background: linear-gradient(135deg, #f8f4ff 0%, #fff0f8 100%);
    border-radius: 25px;
    border: 3px dashed #00bf8f;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 191, 143, 0.1), 0 8px 25px rgba(0, 0, 0, 0.1);
}

.rights-section::after {
    content: '⚖️';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    background: white;
    border: 2px solid #00bf8f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-card {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(145deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 191, 143, 0.2);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00bf8f, #00d4aa, #00bf8f);
    border-radius: 12px;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.creator-section {
    margin-bottom: 40px;
    padding: 30px;
    background: radial-gradient(ellipse at center, #fff9e6 0%, #f5f5f0 100%);
    border-radius: 30px 10px 30px 10px;
    border: 2px solid #ffb84d;
    position: relative;
    box-shadow: 0 12px 40px rgba(255, 184, 77, 0.2);
    transform: rotate(-1deg);
}

.creator-section::before {
    content: '👨‍💻';
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 50px;
    background: white;
    border: 3px solid #ffb84d;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(15deg);
    box-shadow: 0 5px 20px rgba(255, 184, 77, 0.3);
}

.archive-notice {
    margin-bottom: 40px;
    padding: 35px;
    background: linear-gradient(135deg, #fff8dc 0%, #f0f8dc 100%);
    border-radius: 15px;
    border: 3px solid #d4af37;
    position: relative;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.archive-notice::before {
    content: '📼';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 40px;
    opacity: 0.7;
}

.archive-notice::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(90deg, #d4af37 0px, #d4af37 20px, transparent 20px, transparent 40px);
}

.memory-card h3, .philosophy-section h3, .rights-section h3, .tech-card h3, .creator-section h3, .archive-notice h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.memory-card p, .philosophy-section p, .rights-section p, .tech-card p, .creator-section p, .archive-notice p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.rights-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.rights-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e1e8ed;
    font-size: 15px;
}

.rights-list li:last-child {
    border-bottom: none;
}

.tech-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.feature p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.nostalgic-quote {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: #00bf8f;
    color: white;
    border-radius: 8px;
}

.nostalgic-quote blockquote {
    font-size: 24px;
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

.quote-attribution {
    font-size: 16px;
    opacity: 0.8;
    font-style: normal;
}

.cta-section {
    text-align: center;
    margin-top: 40px;
    padding: 40px;
    background: #f0f9f7;
    border-radius: 8px;
}

.cta-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
}

.cta-button {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: #00bf8f;
    color: white;
}

.cta-button.primary:hover {
    background: #00a077;
}

.cta-button.secondary {
    background: transparent;
    color: #00bf8f;
    border: 2px solid #00bf8f;
}

.cta-button.secondary:hover {
    background: #00bf8f;
    color: white;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 30px 20px;
    text-align: center;
    font-size: 13px;
    color: #8899a6;
}

footer a {
    color: #00bf8f;
}

/* Loading State */
.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00bf8f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 900px) {
    .vine-main-container {
        grid-template-columns: 1fr;
    }
    
    .vine-sidebar-left,
    .vine-sidebar-right {
        display: none;
    }
}

@media (max-width: 600px) {
    .vine-header {
        height: 200px;
    }
    
    .vine-logo {
        font-size: 36px;
    }
    
    .vine-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}