1+ /* ==========================================================================
2+ FINAL & DEFINITIVE STYLES FOR HOBBIES PAGE
3+ ========================================================================== */
14
2- /* --- Page Layout --- */
3- .hobby-detail-page {
4- max-width : 1280px ;
5- margin : 0 auto ;
6- padding : 4rem 2rem ;
7- }
8- .hobby-hero {
9- text-align : center ;
10- margin-bottom : 4rem ;
11- }
12- .hobby-title {
13- font-size : 3em ;
14- font-weight : 800 ;
15- margin-bottom : 1rem ;
16- }
17- .hobby-excerpt {
18- font-size : 1.2em ;
19- color : #555 ;
20- margin-bottom : 2rem ;
21- max-width : 800px ;
22- margin-left : auto ;
23- margin-right : auto ;
24- }
5+ /* --- Page Layout & Hero --- */
6+ .hobby-detail-page { max-width : 1280px ; margin : 0 auto ; padding : 4rem 1rem ; }
7+ .hobby-hero { text-align : center ; margin-bottom : 4rem ; }
8+ .hobby-title { font-size : 3em ; font-weight : 800 ; margin-bottom : 1rem ; }
9+ .hobby-excerpt { font-size : 1.2em ; color : #555 ; max-width : 800px ; margin : 0 auto 2rem ; }
2510
26- /* --- Tabs & Search --- */
11+ /* --- Tabs & Search (DEFINITIVE FIX) --- */
2712.hobby-tabs {
2813 display : flex ;
29- gap : 0.5rem ;
3014 border-bottom : 1px solid #ddd ;
3115 margin-bottom : 2rem ;
16+ /* Make the container scrollable on the x-axis */
17+ overflow-x : auto ;
18+ /* Hide the scrollbar for a cleaner look */
19+ -ms-overflow-style : none ; /* IE and Edge */
20+ scrollbar-width : none ; /* Firefox */
21+ }
22+ .hobby-tabs ::-webkit-scrollbar {
23+ display : none ; /* Chrome, Safari, and Opera */
3224}
3325.tab-link {
3426 border : none ;
4032 cursor : pointer ;
4133 border-bottom : 3px solid transparent ;
4234 transition : all 0.2s ease ;
35+ /* Prevent tabs from shrinking or wrapping */
36+ flex-shrink : 0 ;
37+ white-space : nowrap ;
4338}
4439.tab-link :hover { color : #111 ; }
4540.tab-link.active { color : #0071e3 ; border-bottom-color : #0071e3 ; }
4641
4742.tab-content { display : none ; }
4843.tab-content.active { display : block ; }
49-
5044.hobby-search-wrapper { position : relative ; margin-bottom : 2rem ; }
5145.hobby-search-wrapper .fa-search { position : absolute ; top : 50% ; left : 1rem ; transform : translateY (-50% ); color : #aaa ; }
5246.hobby-search-input { width : 100% ; padding : 0.8rem 1rem 0.8rem 3rem ; font-size : 1em ; border-radius : 12px ; border : 1px solid #ddd ; background-color : #f8f8fa ; }
5347
54- /* --- Content Structure --- */
48+ /* --- Content Structure (DEFINITIVE FIX) --- */
5549.hobby-sub-group { margin-top : 4rem ; }
5650.sub-group-title { font-size : 1.8em ; font-weight : 700 ; margin-bottom : 2rem ; border-bottom : 1px solid #eef0f2 ; padding-bottom : 1rem ; }
5751
52+ /* Default style for desktop and tablets */
5853.content-grid {
5954 display : grid ;
6055 grid-template-columns : repeat (auto-fill , minmax (350px , 1fr ));
61- gap : 2rem ;
62- align-items : stretch ; /* Ensures items in a row stretch to the same height */
56+ gap : 1.5rem ;
57+ align-items : stretch ;
58+ }
59+ /* Rule for mobile screens (e.g., less than 420px wide) */
60+ @media (max-width : 420px ) {
61+ .content-grid {
62+ /* On mobile, force a single-column layout */
63+ grid-template-columns : 1fr ;
64+ }
6365}
6466
65- /* --- Base Card Style (for all cards) --- */
67+ /* --- UNIFIED CARD STYLES --- */
6668.hobby-card {
67- display : flex ; /* Enables flex properties for children */
68- flex-direction : column ; /* Stacks content vertically */
69- height : 100% ; /* Important for stretching */
69+ display : flex ;
70+ flex-direction : column ;
71+ height : 100% ;
7072 border-radius : 20px ;
7173 box-shadow : 0 4px 15px rgba (0 ,0 ,0 ,0.05 );
7274 transition : transform 0.3s ease , box-shadow 0.3s ease ;
75+ overflow : hidden ;
7376}
74- .hobby-card :hover {
75- transform : translateY (-8px );
76- box-shadow : 0 8px 25px rgba (0 ,0 ,0 ,0.12 );
77- }
77+ .hobby-card :hover { transform : translateY (-8px ); box-shadow : 0 8px 25px rgba (0 ,0 ,0 ,0.12 ); }
7878.hobby-card a {
7979 display : flex ;
8080 flex-direction : column ;
81- flex-grow : 1 ; /* Makes the link fill the entire card height */
81+ flex-grow : 1 ;
8282 text-decoration : none ;
8383 color : #1d1d1f ;
84+ padding : 2rem ;
8485}
86+ .hobby-card .card-title { font-size : 1.5em ; font-weight : 700 ; margin-top : 1rem ; margin-bottom : 0.5rem ; }
87+ .hobby-card .card-link {
88+ display : inline-block ;
89+ background-color : #f0f0f5 ;
90+ color : #0071e3 ;
91+ border-radius : 99px ;
92+ padding : 0.75rem 1.5rem ;
93+ font-size : 1em ;
94+ font-weight : 600 ;
95+ text-decoration : none ;
96+ transition : background-color 0.2s ease ;
97+ margin-top : 1rem ;
98+ align-self : flex-start ;
99+ }
100+ .hobby-card .card-link :hover { background-color : #e0e0e5 ; }
85101
86- /* --- Specific Card Styles --- */
87-
88- /* Blog Post Card */
102+ /* --- Specific Card Overrides --- */
89103.blog-card { background-color : #fff ; }
90- .blog-card a { padding : 2rem ; }
91- .blog-card .card-title { font-size : 1.5em ; font-weight : 700 ; margin : 0 0 0.5rem ; }
92- .blog-card .card-excerpt { color : #555 ; line-height : 1.6 ; flex-grow : 1 ; /* Fills empty space */ }
93- .blog-card .card-link { font-weight : 600 ; color : #0071e3 ; margin-top : 1rem ; display : inline-block ; }
94-
95- /* Redesigned Instagram Card (No Image) - Final Version */
96- .insta-card-no-image {
97- display : flex ; /* Use flexbox for vertical alignment */
98- background : linear-gradient (145deg , #f9f9fb , #f0f0f5 );
99- border : 1px solid #e5e5e5 ;
100- border-radius : 20px ;
101- box-shadow : 0 4px 15px rgba (0 ,0 ,0 ,0.02 );
102- transition : transform 0.3s ease , box-shadow 0.3s ease ;
103- }
104+ .blog-card .card-excerpt { color : #555 ; line-height : 1.6 ; flex-grow : 1 ; margin-bottom : 0.5rem ; margin-top :0.5rem ; }
104105
106+ .insta-card-no-image { background : linear-gradient (145deg , #f9f9fb , #f0f0f5 ); border : 1px solid #e5e5e5 ; }
105107.insta-card-no-image a {
106108 display : flex ;
107109 flex-direction : column ;
108- justify-content : center ; /* Vertically center the content */
110+ justify-content : center ;
109111 text-align : center ;
110112 flex-grow : 1 ;
111- padding : 2 rem ;
113+ padding : 2.5 rem ;
112114 text-decoration : none ;
113115 color : #1d1d1f ;
114116}
115-
116- .insta-card-no-image .insta-icon {
117- font-size : 1.8rem ;
118- color : transparent ;
119- background : -webkit-linear-gradient (45deg , #f09433 0% ,#e6683c 25% ,#dc2743 50% ,#cc2366 75% ,#bc1888 100% );
120- -webkit-background-clip : text ;
121- background-clip : text ;
122- margin-bottom : 1.5rem ;
123- }
124-
125- .insta-card-no-image .card-title {
126- font-size : 1.5em ;
127- font-weight : 700 ;
128- margin-top : 0.8rem ;
129- margin-bottom : 0.5rem ;
130- }
131-
132- .insta-card-no-image .card-description {
133- font-size : 1.1em ;
134- color : #555 ;
135- line-height : 1.6 ;
136- flex-grow : 1 ; /* Pushes the button to the bottom */
137- }
138-
139117.insta-card-no-image .card-link {
140- display : inline-block ;
141- background-color : #f0f0f5 ;
142- color : #0071e3 ; /* Apple Blue for emphasis */
143- border-radius : 99px ;
144- padding : 0.75rem 1.5rem ;
145- font-size : 1em ;
146- font-weight : 600 ;
147- text-decoration : none ;
148- transition : background-color 0.2s ease ;
149- margin-top : 0.5rem ;
150- align-self : center ; /* Center the button */
118+ background-color : #fff ; /* White background for contrast */
119+ border : 1px solid #e0e0e5 ;
120+ align-self : center ; /* Center-align */
151121}
122+ .insta-card-no-image .insta-icon { font-size : 1.8rem ; margin-bottom : 1.5rem ; color : #c13584 ; }
123+ .insta-card-no-image .card-description { font-size : 1.1em ; color : #555 ; line-height : 1.6 ; flex-grow : 1 ; margin-bottom : 0.5rem ; }
124+ .insta-card-no-image.featured { border-color : #0071e3 ; }
152125
153- .insta-card-no-image .card-link :hover {
154- background-color : #e0e0e5 ;
155- }
156-
157- .insta-card-no-image.featured {
158- border-color : #0071e3 ;
159- box-shadow : 0 6px 20px rgba (0 , 113 , 227 , 0.1 );
160- }
161- /* General log-card wrapper for search */
162126.log-card { display : block ; }
0 commit comments